package com.walker.springboot.rabbitmq.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @ProjectName: walker-step
 * @Package: com.walker.springboot.rabbitmq.listener
 * @ClassName: MyListener
 * @Author: yangyl
 * @CreateDate: 2020/6/21 19:57
 */
@Component
public class MyListener implements ApplicationListener<MyEvent> {

    private Logger logger=LoggerFactory.getLogger(MyListener.class);
    public void onApplicationEvent(MyEvent myEvent) {
        logger.info("监听到用户信息:"+myEvent);
    }
}
